package start;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class AppConfig {
    @Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public A myA() {
        A result = new A();
        System.out.println(this+": myA()="+result);
        return result;
    }
}
